#include <iostream>

using namespace std;

int main() {
/*
    int a, b;
    float c, d;
    char e, f;
    int g;
    float h;

    cout << "a = " << a << ", b = " << b << ", c = " << c << ", d = " << d;
    cout << ", e = " << e << ", f = " << f << ", g = " << g << ", h = " << h << endl;
*/

   /*
    float a = 9.9998;

    cout << "a = " << a << endl;
    cout << "强制类型转换: " << (int)a << endl;
    */


/*
    // int a = 5;
    // int b = 6;
    int a = 5, b = 6;

    // cout << "平均数: " << (a+b) / 2 << endl;
    // cout << "平均数: " << (a+b) / 2.0 << endl;
    cout << "平均数: " << ((float)a+b) / 2 << endl;
*/

    // 交换两个变量的值
    // 1
/*
    int a = 3, b = 4;
    int c;

    c = a;
    a = b;
    b = c;

    cout << "a = " << a << ", b = " << b << endl;
*/


/*
    int a = 3, b = 4;

    a = a + b;   // a = 7    b = 4
    b = a - b;   // a = 7    b = 3
    a = a - b;   // a = 4    b = 3

    cout << "a = " << a << ", b = " << b << endl;
*/

/*
    int a;
    float b;
    char c;

    cin >> a >> b >> c;

    cout << "a = " << a << ", b = " << b << ", c = " << c << endl;
*/

  /*
    int a, b;

    cin >> a >> b;

    cout << a + b << endl;
*/

/*
    int a, b;
    cin >> a >> b;
    cout << a << "与" << b << "的乘积是" << a*b << endl;
*/

/*
    int a, b;
    char c;

    cin >> a >> c >>  b;

    // cout << a << "*" << b << "=" << a*b << endl;
    cout << a << c << b << "=" << a*b << endl;

*/



    return 0;
}
